<#include "/layout/easyuilayout.ftl"/>

<@htmlHead >   
	<script type="text/javascript" src="${webinfo.basePath}/MgrScript/sysmgr/type/js/index.js"></script>
</@htmlHead> 
<@htmlBody>
 

<div id="App_Type_Toolbar">    
   <input id="App_Type_ss" class="easyui-searchbox" style="width:280px;"  data-options="searcher:fun_App_TypeSearchbox,prompt:'请输入关键字...',menu:'#App_Type_mm'"></input>           
    <div id="App_Type_mm" style="width:120px">
            <div data-options="name:'typeId',iconCls:'sealist'">编码</div>
            <div data-options="name:'typeName',iconCls:'sealist'">名称</div>
    </div>  
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="fun_ShowApp_TypeEditForm(-2)">新建 </a>
    <span class="datagrid-btn-separator" style="float:none;"></span>
    
    <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-reload" plain="true" onclick="fun_ReloadApp_TypeList()">刷新 </a>
 


   </div> 

    <div data-options="region:'center',title:'',split:true" >
        <ul id="App_Type_Grid"></ul>
    </div>
    <div id="treemm" class="easyui-menu" style="width: 120px;">
        <div onclick="fun_ShowApp_TypeEditForm(-2)" data-options="iconCls:'icon-add'">创建根节点</div>
        <div onclick="fun_ShowApp_TypeEditForm(-1)" data-options="iconCls:'icon-add'">创建子节点</div>
        <div onclick="fun_ReloadApp_TypeList()" data-options="iconCls:'icon-add'">全部刷新</div> 
        <div onclick="fun_ReloadNodeList()" data-options="iconCls:'icon-add'">刷新当前节点</div> 
    </div>

    <div id="App_Type_EditForm" data-options="region:'east',title:'编辑',split:false" style="width: 340px; overflow:hidden;border : dotted 1px #cfcfcf">
                   <form id="App_Type_EditForm_fm" method="post">  
 
                            <div class="fitem">
                                <label class="title">类型名称 : </label>
                                <input name="typeName" class="easyui-validatebox" value="" data-options="required:true" />
                            </div>
                            <div class="fitem"  >
                                <label>上级编码 : </label>
                                <input id="pTypeId" name="pTypeId" value="" readonly="readonly" />
                            </div>
                            <div class="fitem"   style="display: none"> 
                                <label class="title">编码 : </label>
                                <input name="typeId" class="easyui-validatebox" value="" data-options="required:false" readonly="readonly" />
                            </div>
                            <div class="fitem">
                                <label class="title">生效日期 : </label>
                                <input name="startDate" class="easyui-datebox" value="" data-options="required:false" />
                            </div>
                            <div class="fitem">
                                <label class="title">结束日期 : </label>
                                <input name="endDate" class="easyui-datebox" value="" data-options="required:false" />
                            </div>
                            <div class="fitem">
                                <label class="title">等级 : </label>
                                <input name="Rank" class="easyui-numberbox" value="" data-options="required:false" />
                            </div>
                            <div class="fitem">
                                <label class="title">排序 : </label>
                                <input name="ordernum" class="easyui-numberbox" value="" data-options="required:false" />
                            </div> 
                            <div class="fitem">
                                <label class="title">说明链接: </label>
                                <input name="typeMemo" id="typeMemo" class="easyui-validatebox" value="" data-options="required:false" />
                            </div>  
                        
                </form>
                
             <input id="roottypeid" name="roottypeid" value="${roottypeid}"  type="hidden" /> 
             
                <a id="subit" href="javascript:void(0)" class="easyui-linkbutton" 
                 style=" width:100%;margin-top: 10px"
                iconcls="icon-ok" onclick="fun_SaveApp_Type()">保存</a>
            

    </div>
 


 
</@htmlBody>